all: dnsclient dnsserver

dnsclient: dnsclient.o serialize_deserialize_dns_names.o
	gcc dnsclient.o serialize_deserialize_dns_names.o -o dnsclient

dnsserver: dnsserver.o serialize_deserialize_dns_names.o
	gcc dnsserver.o serialize_deserialize_dns_names.o -o dnsserver

dnsclient.o: dnsclient.c
	gcc -c dnsclient.c -o dnsclient.o

dnsserver.o: dnsserver.c
	gcc -c dnsserver.c -o dnsserver.o

serialize_deserialize_dns_names.o: serialize_deserialize_dns_names.c
	gcc -c serialize_deserialize_dns_names.c -o serialize_deserialize_dns_names.o
